package ru.zombator.taskman.core.dbclient.impl;

import java.util.UUID;

import ru.zombator.taskman.core.domain.Datestamp;
import ru.zombator.taskman.core.domain.ITask;

/**
 * Задача
 * 
 * @see ITask
 * @author nvamelichev
 *
 */
public class Task implements ITask {
	private static final long serialVersionUID = 1L;
	
	private UUID id;
	private String name;
	private String description;
	private Datestamp startDate;
	private Datestamp endDate;
	private Status status;
	
	public Task(UUID id, String name, Datestamp startDate, Datestamp endDate) {
		this.id = id;
		this.name = name;
		this.startDate = startDate;
		this.endDate = endDate;
	}
	
	@Override
	public String getDescription() {
		return description;
	}

	@Override
	public Datestamp getEndDate() {
		return endDate;
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public Datestamp getStartDate() {
		return startDate;
	}

	@Override
	public Status getStatus() {
		return status;
	}

	@Override
	public void setDescription(String newDescription) {
		this.description = newDescription;
	}

	@Override
	public void setEndDate(Datestamp dateEnd) {
		this.endDate = dateEnd;
	}

	@Override
	public void setName(String newName) {
		this.name = newName;
	}

	@Override
	public void setStartDate(Datestamp dateStart) {
		this.startDate = dateStart;
	}

	@Override
	public void setStatus(Status status) {
		this.status = status;
	}

	@Override
	public UUID getId() {
		return id;
	}

}
